package orchestration.android.execution.commands;

import orchestration.android.RunExecutionActivity;
/**
 * An {@link AndroidOrchestrationCommand} that knows how to complete
 * an execution
 * @author <a href="mailto:car.ferrarini@gmail.com">Carlo Ferrarini</a>
 *
 */
public class StopExecutionCommand implements AndroidOrchestrationCommand {

	@Override
	public void execute(RunExecutionActivity rea) {
		rea.releaseExecution();
		rea.finish();
	}

	@Override
	public int getId() {
		return CommandFactory.STOP_EXECUTION;
	}
}
